@import '../../styles/colors.less';
.cm-tab{
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cm-tab-header-wrap{
    position: relative;
    border-bottom: 1px solid @color-border;
    display: flex;
}
.cm-tab-header{
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    transition: transform 0.3s ease-in-out;
}
.cm-tab-next,
.cm-tab-prev{
    width: 32px;
    text-align: center;
    cursor: pointer;
    line-height: 31px;
    display: none;
}
.cm-tab-overflow{
    .cm-tab-next,
    .cm-tab-prev {
        display: block;
    }
}
.cm-tab-header-item{
    list-style: none;
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
    transition: all .3s ease-in-out;
    &:hover{
        .cm-tab-close{
            width: 12px;
        }
    }
}
.cm-tab-header-item-active{
    color: @color-blue;
}
.cm-tab-scroll{
    height: 100%;
    overflow: hidden;
    flex: 1;
}
.cm-tab-card {
    .cm-tab-scroll {
        margin-bottom: -1px;
    }
    .cm-tab-header{
        float: left;
    }
    .cm-tab-header-item {
        border: 1px solid @color-border;
        margin-right: 5px;
        padding: 5px 16px 4px;
        border-radius: 3px 3px 0 0;
        border-bottom: 0;
        background-color: @color-bg;
        height: 31px;
    }
    .cm-tab-header-item-active{
        &.cm-tab-header-item {
            border: 1px solid @color-blue;
            border-bottom: 0;
            background-color: #fff;
            padding-bottom: 5px;
            height: 32px;
        }
    }
}
.cm-tab-header-item-disabled{
    pointer-events: none;
    color: @color-disabled;
}
.cm-tab-content{
    flex: 1;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease-in-out;
}
.cm-tab-panel{
    flex-shrink: 0;
    width: 100%;
    transition: opacity .3s;
    opacity: 0;
    outline: 0;
}
.cm-tab-panel-active{
    opacity: 1;
}
.cm-tab-active-line{
    position: absolute;
    bottom: 0;
    height: 2px;
    background: @color-blue;
    transition: all 0.3s ease-in-out;
    left: 0;
}
.cm-tab-close{
    margin-left: 5px;
    width: 0;
    transition: all 0.3s ease-in-out;
    &:hover{
        color: @color-blue;
    }
}